package com.zzq.my.jetpacks.jectpackapp.ui.act

import android.view.View
import androidx.fragment.app.Fragment
import by.kirich1409.viewbindingdelegate.viewBinding
import com.aisier.architecture.base.BaseActivity
import com.jennifer.andy.androidxlazyload.demo.adapter.FragmentLazyPagerAdapter
import com.jennifer.andy.androidxlazyload.demo.adapter.FragmentLazyStatePageAdapter
import com.zzq.my.jetpacks.jectpackapp.*
import com.zzq.my.jetpacks.jectpackapp.databinding.Activity1Binding
import com.zzq.my.jetpacks.jectpackapp.databinding.Activity3Binding
import com.zzq.my.jetpacks.jectpackapp.databinding.Activity4Binding
import com.zzq.my.jetpacks.jectpackapp.databinding.Activity5Binding
import com.zzq.my.jetpacks.jectpackapp.ui.fragment.FourFragment
import com.zzq.my.jetpacks.util.loadFragments
import com.zzq.my.jetpacks.util.loadRootFragment
import com.zzq.my.jetpacks.util.showHideFragment

/**
 * 描述：- Activity 嵌入 Fragment
 * 作者：zhuangzeqin
 * 时间: 2022/1/18-17:04
 * 邮箱：zzq@eeepay.cn
 * 备注:
 */
class Activity6 : BaseActivity(R.layout.activity_1),View.OnClickListener{
    private val binding by viewBinding(Activity1Binding::bind)

    /**
     * 初始化数据
     */
    override fun initData() {
        val viewpage = binding.viewPager.apply {
            adapter = FragmentLazyPagerAdapter(
                supportFragmentManager,
                generateABCFragments().values.toMutableList(),
                generateABCFragmentTitles()
            )
        }
        binding.tabLayout.setupWithViewPager(viewpage)

    }

    /**
     * 初始化操作
     */
    override fun initView() {

    }

    /**
     * 初始化点击事件操作
     */
    override fun eventOnClick() {

    }

    override fun onClick(v: View) {

    }

}